Replaced localtime() with gmtime() in trackpoint writer (PCX time is UTC time)
authoroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 2 Nov 2005 21:38:50 +0000 (21:38 +0000)
committeroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 2 Nov 2005 21:38:50 +0000 (21:38 +0000)
gpsbabel/pcx.c

index 1c87a26a8acd1439d5ebe6001913a28471f9bdf1..f69aa6504b2b461aa37bd226ff3bc1b0830c4258 100644 (file)
@@ -289,7 +289,7 @@ pcx_track_disp(const waypoint *wpt)
        lon = degrees2ddmm(wpt->longitude);
        lat = degrees2ddmm(wpt->latitude);
 
-       tm = localtime(&wpt->creation_time);
+       tm = gmtime(&wpt->creation_time);
 
        strftime(tbuf, sizeof(tbuf), "%d-%b-%y %T", tm);
        for (tp = tbuf; *tp; tp++) {